﻿@using ZhouYu.DreamTour.Model;
@{
    //调用根据订单编号查询商品信息
    OrderInfo orderInfo = Model as OrderInfo;
    //调用根据订单Id查询收货人信息
    var CheckOrderOverInfoByOrder_Id = ViewBag.CheckOrderOverInfoByOrder_Id as OrderOver;
}
<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>中国梦想游-地方特产页</title>
    <link href="~/css/style.css" rel="stylesheet" type="text/css" />
    <link href="~/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="~/js/jquery-1.9.1.min.js"></script>

</head>
<body>

    <div class="mainNav clearfix">
        <ul class="Nav_ul">
            <li><a href="/Home/Index">首页</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Route">旅游路线</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Scenic">旅游景点</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/CateringAccommodation">餐饮住宿</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Traffic_DatailsOne">交通线路</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Group">旅游团购</a><img src="~/images/nav_line.jpg"></li>
            <li class="cur"><a href="/Home/Specialty">地方特产</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/AutoGenerationIntro">自动生成简介</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Team_Join">团队简介</a><img src="~/images/nav_line.jpg"></li>
            <li><a href="/Home/Itinerary_Details">行程导航</a></li>
        </ul>
    </div>
    <div class="b_wrap">
        <div class="current"><span>当前所在地：</span><a href="/Home/Index">首页</a> >> <a href="/Home/Specialty">地方特产</a> >> <a href="#">商品详情</a></div>
        <div class="sp_lc"><center><img src="~/images/sp_lc04.jpg"></center></div>
        <div class="sp_time">@orderInfo.Order_ReserveTime</div>
        <table class="sp_tab" width="980" border="0" cellspacing="0" cellpadding="0">
            <caption>我已收到货，同意支付宝付款</caption>
            <thead>
                <tr>
                    <th width="580">产品信息</th>
                    <th width="50">赠送积分</th>
                    @*<th width="158">单价（元）</th>
                        <th width="63">数量</th>
                        <th width="63">优惠</th>*@
                    <th>总计（元）</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <dl class="sp_dl clearfix">
                            <dt><img src="@orderInfo.Orde_PictureUrl" style="width:100%;margin-left:60%"></dt>
                            <dd>
                                <p style="margin-left:70%;margin-top:6%">
                                    @orderInfo.Order_ProInfo
                                </p>
                            </dd>
                        </dl>
                    </td>
                    <td>@orderInfo.Order_Money</td>
                    <td rowspan="3" class="fn_o"><b>@orderInfo.Order_Money</b><span>元</span></td>
                </tr>
            </tbody>
        </table>
        <div class="qr_info clearfix">
            <div class="qr_left">
                <p class="2id">订单编号：@orderInfo.Order_No</p>
                <p class="2id">收货地址：@CheckOrderOverInfoByOrder_Id.OrderOver_Address
                <p class="2id">收货人：@CheckOrderOverInfoByOrder_Id.OrderOver_Name</p>
                <p class="2id">收货人电话：@CheckOrderOverInfoByOrder_Id.OrderOver_Tel</p>
                <p class="2id">成交时间：@orderInfo.Order_ReserveTime</p>
            </div>
            <div class="qr_right">实付款：<b>￥@orderInfo.Order_Money</b></div>
        </div>
        <div class="qr_wrap clearfix">
            <table width="950" border="0" cellspacing="0" cellpadding="0">
                <caption>请收到货后，再确认收货！否则您可能钱货两空！</caption>
                <tbody>
                    <tr>
                        <td width="104"></td>
                        <td class="self" width="846">安全设置检测成功！数字证书正在保护中。</td>
                    </tr>
                    <tr>
                        <td>支付宝支付密码：</td>
                        <td><input type="text" name="" value="" placeholder=""> <a href="#">忘记密码</a></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><a href="javascript:;" onclick="Sure('@orderInfo.Order_No')"><img src="~/images/qd_button.jpg"></a></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>
<script>
    function Sure(Order_No){
        //ajax提交
        $.ajax({
            url: "/Specialty/UpdateOrderStatusByOrder_No?Order_No=" + Order_No,
            type: "post",
            success: function (result) {
                if (result.Success) {
                    //跳转到订单页面
                    window.location.href = "/Home/User_Order?Order_No=" + Order_No;
                }
            }
        });
    }
</script>

